<?php

namespace app\admin\model\admin;

use app\admin\model\Models;
use app\admin\traits\model\Roles;

class Role extends Models
{
    use Roles;

    /**
     * 设置状态获取器
     * @return string
     */
    protected function getStatusTextAttr( $value, $data )
    {
        $status = config('field.roles.status');
        return $status[$data['status']]??'暂无';
    }
}
